import { type StyleTypes, preset } from '../class/styleClass/utils'

export const styles: StyleTypes.Styles = {
  SV0: {
    tags: { orient: 'V' },
    type: 'FREE',
    section: {
      top: {
        presets: [preset('T:女儿墙')],
      },
      bottom: {
        height: '1H',
        presets: [preset('M:竖向', { unit: { 楼板底部: 2, 柱宽: 2 } }), preset('B:核心筒')],
      },
    },
  },
  SV1: {
    tags: { orient: 'V' },
    type: 'FREE',
    section: {
      top: {
        presets: [preset('T:女儿墙', { unit: { 高度: 1.5, 缩进: 0.5 } })],
      },
      middle: {
        floors: [
          {
            ctrl: { indent: { end: -1 } },
            edge: [{ offset: -0.5 }],
            extrude: [{ height: -0.6 }],
          },
          {
            ctrl: { total: 1 },
            vertical: [
              {
                array: [
                  {
                    space: 4,
                    boxes: [{ widthX: 1, depthY: 1, heightZ: 'SH' }],
                  },
                ],
              },
            ],
          },
          {
            extrude: [
              { thickness: -2, height: '1FH+0.2', color: '#26fG', trans: [{ moveZ: 0.5 }] },
            ],
          },
        ],
      },
      bottom: {
        height: '0.2H',
        floorHeight: 5,
        presets: [preset('B:核心筒')],
        floors: [
          {
            ctrl: { indent: { start: 1, end: -1 } },
            edge: [{ offset: 0.5 }],
            extrude: [{ height: -1.2 }],
          },
          {
            ctrl: { total: 1 },
            vertical: [
              {
                sandwich: true,
                array: [
                  {
                    space: 4,
                    boxes: [{ widthX: 2, depthY: 2, heightZ: 'SH' }],
                  },
                ],
              },
            ],
          },
          {
            extrude: [
              { thickness: -2, height: '1FH+0.2', color: '#26fG', trans: [{ moveZ: 0.5 }] },
            ],
          },
        ],
      },
    },
  },
  SV2: {
    tags: { orient: 'V' },
    type: 'FREE',
    section: {
      top: {
        presets: [preset('T:女儿墙', { unit: { 高度: 2 } })],
      },
      middle: {
        presets: [preset('M:竖向', { unit: { 柱高修正: 1 } })],
      },
      bottom: {
        height: '0.2H',
        floorHeight: 5,
        presets: [preset('B:竖向', { unit: { 间距: 6, 柱高修正: 1 } }), preset('B:核心筒')],
      },
    },
  },
  SV3: {
    tags: { orient: 'V' },
    type: 'FREE',
    section: {
      top: {
        presets: [preset('T:女儿墙', { unit: { 高度: 2 } })],
      },
      middle: {
        presets: [preset('M:竖向', { unit: { 柱高修正: 1.5, 柱底标高: -1 } })],
      },
      bottom: {
        height: '0.2H',
        floorHeight: 5,
        presets: [preset('B:竖向'), preset('B:核心筒')],
      },
    },
  },
  SV4: {
    tags: { orient: 'V' },
    type: 'FREE',
    section: {
      top: {
        presets: [preset('T:女儿墙')],
      },
      middle: {
        presets: [preset('M:竖向随机窗格')],
      },
      bottom: {
        height: '0.2H',
        floorHeight: 5,
        presets: [preset('B:横向'), preset('B:核心筒')],
      },
    },
  },
  SL0: {
    tags: { orient: 'V' },
    type: 'FREE',
    section: {
      top: {
        presets: [preset('T:女儿墙', { unit: { 抬升: 0.5 } })],
      },
      bottom: {
        height: '1H',
        presets: [preset('M:横向', { unit: { 底部修正: 2 } }), preset('B:核心筒')],
      },
    },
  },
  SL1: {
    tags: { orient: 'V' },
    type: 'FREE',
    section: {
      top: {
        presets: [preset('T:女儿墙', { unit: { 高度: 2 } })],
      },
      middle: {
        presets: [preset('M:横向', { unit: { 底部修正: 1 } })],
      },
      bottom: {
        height: '0.2H',
        floorHeight: 5,
        presets: [preset('B:横向'), preset('B:核心筒')],
      },
    },
  },
  SL2: {
    tags: { orient: 'V' },
    type: 'FREE',
    section: {
      top: {
        presets: [preset('T:女儿墙', { unit: { 高度: 2 } })],
      },
      middle: {
        presets: [preset('M:横向')],
      },
      bottom: {
        height: '0.2H',
        floorHeight: 5,
        presets: [preset('B:竖向'), preset('B:核心筒')],
      },
    },
  },

  SL3: {
    tags: { orient: 'V' },
    type: 'FREE',
    section: {
      top: {
        presets: [preset('T:女儿墙', { unit: { 高度: 2.5 } })],
      },
      middle: {
        presets: [preset('M:横向', { unit: { 底部修正: 1.5 } })],
      },
      bottom: {
        height: '0.2H',
        floorHeight: 5,
        presets: [preset('B:竖向'), preset('B:核心筒')],
      },
    },
  },
}
